import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 重置浏览器样式
import 'normalize.css'
// 全局公共样式
import '@/styles/common.less'
// 导入注册全局组件插件
import componentsPlugin from '@/components'
// 导入注册全局指令
import directives from '@/directives'

// store.commit('user/setUser')

// 创建一个vue应用实例
createApp(App).use(store).use(router).use(componentsPlugin).use(directives).mount('#app')
